<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<%@ include file="/WEB-INF/jsp/front/task/inc/taglibs.jsp"%>
<%@ include file="/WEB-INF/jsp/front/task/inc/meta_form.jsp"%>
<link href="${approot}/static/style/task/css/table_page_form.css" type="text/css" rel="stylesheet">
<link href="${approot}/static/style/task/css/global.css" type="text/css" rel="stylesheet">
<script type="text/javascript">
            /* <![CDATA[ */
            jQuery(function(){
                jQuery("#shopUrl").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "商品地址不能为空"
                });   
                jQuery("#guaranty").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "担保金额不能为空"
                });   
                jQuery("#point").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "发布点不能为空"
                });   
                jQuery("#rewardPoint").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "奖励点数不能为空"
                });   
                jQuery("#assignComment").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "指定好评内容不能为空"
                });   
                jQuery("#brief").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "任务说明不能为空"
                });   
                jQuery("#reserveField1").validate({
                    expression: "if (VAL) return true; else return false;",
                    message: "安全密码不能为空"
                });   
               
                jQuery('#item').validated(function(){
					//alert("通过验证");
                    var url="${approot}/task/ssl/task/add";
                    var back="${approot}/task/ssl/task/publish_list/menu/0/1/0/0";
                    ajax_submit("yes","no","添加任务",url,back);
				});
            });
            /* ]]> */
        </script>

</head>
<body>
<!-- topbar start -->
 <c:import url="/task/header" context="${approot}"></c:import>
<!-- header end -->

<div class="clear"></div>

<div id="tbody">
<!-- ad
<div class="ad314">
<div class="inner">
<a href="" target="_blank"><img src="${approot}/static/style/task/images/xinshou.gif" border="0" width="318" height="92" alt=""></a><a href="" target="_blank"><img src="${approot}/static/style/task/images/moban.jpg" border="0" width="318" height="92" alt=""></a><a href="" target="_blank"><img src="${approot}/static/style/task/images/jisuying.jpg" border="0" width="318" height="92" alt=""></a>
</div>
</div> -->

 <c:import url="/task/ssl/user/info" context="${approot}"></c:import>
 <c:import url="/task/ssl/user/menu" context="${approot}"></c:import>

<div class="mainContent_wide">
<div class="panel mb8">
<h3><strong>发布新任务</strong></h3>
<div class="content p10" style="text-align:left;">
<form action="" enctype="multipart/form-data" method="post" id="item" name="item">
<table cellpadding="0" cellspacing="1" class="add_table">
<tr>
<th width="15%">任务区</th>
<td width="85%"><input type="radio" name="platform" value="1" checked="checked"/>淘宝任务
    <input type="radio" name="platform" value="2"/>拍拍任务</td>
</tr>
<tr>
<th width="15%">任务类型</th>
<td width="85%"><input type="radio" name="type" value="1" checked="checked"/>实物
    <input type="radio" name="type" value="2"/>虚拟</td>
</tr>
<tr>
<th>掌柜名称：</th>
<td>
<input id="shopkeeper" name="shopkeeper" type="text" value="" style="ime-mode:disabled" size="10" />您还没有在淘宝任务区绑定掌柜号，请点击【绑定掌柜号】
</td>
</tr>
<tr>
<th>商品地址：</th>
<td>
<input name="shopUrl" id="shopUrl" type="text" value="" style="ime-mode:disabled"  size="30"/>
<span class="gray">★紧急通告，淘宝严查销量★建议每个宝贝每个月刷1-2次，多了将增加降权的风险,店铺宝贝越多，流量越高，生意一样好!</span>					</td>
</tr>
<tr>
<th>担保金额：</th>
<td>
<input name="guaranty" id="guaranty" type="text" size="10"/>
<span class="gray">元 您账户余额：1.00 元   担保价格 = 你淘宝的宝贝价格(或改价后价格) + 邮费的总价</span>					</td>
</tr>
<tr>
<th>发布点数：</th>
<td>
<input name="point" id="point" type="text" size="10"/>
<span class="gray">*您的剩余发布点：2.00 点   查看商品价格与发布点对应关系>></span>				
</td>
</tr>
<tr>
<th>奖励点数：</th>
<td>
<input name="rewardPoint" id="rewardPoint" type="text"  size="10" />
<span class="gray">*发布点数越多排名越靠前，越快被人接手，刷钻效率越高！</span>					</td>
</tr>
<tr>
<th>好评要求时限：</th>
<td>
<p>
            <label>
              <input name='assignTimelimit' type='radio' value='0'/>
              马上好评</label>
            &nbsp;&nbsp;
            <label><br />
            <label><input name='assignTimelimit' type='radio' value='24'/>
              24小时好评 <font color=red>&nbsp;（接手方24小时以后才可以收货，所需发布点 = 基本发布点 &times; 1.5）</font></label>
            &nbsp;<br />
                <label><input name='assignTimelimit' type='radio' value='48'/>
                48小时好评 <font color=red>&nbsp;（接手方48小时以后才可以收货，所需发布点 = 基本发布点 &times; 1.5 + 1）</font></label>
                &nbsp;&nbsp;
            <br />
        <label><input name='assignTimelimit' type='radio' value='72'/>
            72小时好评 <font color=red>&nbsp;（接手方72小时以后才可以收货，所需发布点 = 基本发布点 &times; 1.5 + 2）</font></label>
            </p>
            </td>
</tr>
<tr>
<th>指定好评内容：</th>
<td>
<textarea rows="2" cols="40" name="assignComment" id="assignComment"></textarea>
</td>
</tr>
<tr>
<th>任务说明：</th>
<td>
<textarea rows="2" cols="40" name="brief" id="brief"></textarea>
</td>
</tr>
<tr>
<th>操作密码：</th>
<td>
<input type="text" Id="reserveField1" name="reserveField1" size="20" /> <a href=""><font color="#FF0000"><b>忘记操作码？</b></font></a>
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="dosubmit" class="submit" id="button" value="确 定" />
<input type="reset" name="button2" class="reset" id="button2" value="重 置" />
</td>
</tr>
</table>
</form>
</div>

</div>

</div>

<div class="clear"></div>
<span id="toggle_pannel" style="display:none;"></span>
</div>

</div>

<!-- copyright start -->
 <c:import url="/task/footer" context="${approot}"></c:import>
</body></html>